// 泛型约束
interface Sizeable {
    size: number
}
function trace<T extends Sizeable>(value: T): T {
    console.log(value.size)
    return value
}
trace(1)